//
//  HeroData.cpp
//  FruitCrush
//
//  Created by wuliqing on 15/8/12.
//
//

#include "HeroData.h"

HeroData::HeroData()
:healthLevelValue(0),healthValue(60),swordLevelValue(0),swordValue(5),fireLevelValue(0),
 fireValue(5),arrowLevelValue(0),arrowValue(5),lightLevelValue(0),lightValue(5),
 healthGlodValue(100),swordGlodValue(100),fireGlodValue(100),arrowGlodValue(100),lightGlodValue(100)
{
}

bool HeroData::init(void)
{
    return true;
}

HeroData::~HeroData(void)
{
}

int HeroData::getHeroPropertyByType(int type)
{
	switch (type) {
		case HealthValueType:
			return getHealthValue();
		case SwordValueType:
			return getSwordValue();
		case FireValueType:
			return getFireValue();
		case ArrowValueType:
			return getArrowValue();
		case LightValueType:
			return getLightValue();
		default:
			break;
	}
    return 5;
}
